package com.library.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BorrowHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long userId;

    private Long bookId;

    private String bookTitle;

    //借书时间
    private LocalDateTime borrowTime;

    //还书时间
    private LocalDateTime returnTime;

    //借阅状态 0-未还书 1-已还书
    private Integer status;

    //还书期限
    private LocalDateTime returnDeadline;
}
